package youcaihuaoa.weetop.com.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.robot.base.model.CustomListItemBean
import com.robot.base.model.ExamineBean
import com.robot.base.utils.pic.ImageLoaderUtils
import youcaihuaoa.weetop.com.R

class ShopItemAdapter : BaseQuickAdapter<ExamineBean, BaseViewHolder>(
    R.layout.app_item_shop_fragment
) {
    override fun convert(holder: BaseViewHolder, item: ExamineBean) {
        holder.setText(R.id.tv_title, "${item.user_name}发起的${item.public_title}")
            .setText(R.id.tv_apply_time, "申请时间：${item.public_create_time}")
            .setText(R.id.tv_approve_time, "审批时间：${item.examine_time ?: ""}")
            .setGone(R.id.tv_btn, item.status == "1"||item.status == "-1")
    }
}